VMX: ensure MSR index enum and array remain in sync
authorJan Beulich <jbeulich@suse.com>
Thu, 23 Jun 2016 15:47:44 +0000 (17:47 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 23 Jun 2016 15:47:44 +0000 (17:47 +0200)
commitd86ad7cb287b5ea05cfee20cdd277005d771886f
tree06b026e9d22d132809151a5929a2bb932e634aae
parent3528b5b4c3b1695ecc7af5622b32042aafbdf6f4
VMX: ensure MSR index enum and array remain in sync

... by using dedicated initializers. Also add an ASSERT() to make sure
unintentional addition of holes to the array gets noticed. Ditch
MSR_INDEX_SIZE as redundant with VMX_MSR_COUNT.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c